import request from '@/utils/request'
// 获取-部门列表
export const getDepartmentAPI = () => request('/company/department')
// 获取-部门负责人列表
export const getSimpleAPI = () => request('/sys/user/simple')

// 新增-部门
export const addDepartmentAPI = data => request.post('/company/department', data)

// 获取-部门详情
export const getDepartmentDetailAPI = id => request(`/company/department/${id}`)

// 修改-部门详情
export const editDepartmentAPI = data => request.put(`/company/department/${data.id}`, data)
// 删除-部门
export const delDepartmentAPI = id => request.delete(`/company/department/${id}`)

